home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000253_news@newsmaster….columbia.edu _Sat May 31 02:09:22 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id CAA05958
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 31 May 1997 02:09:22 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id CAA02185
for kermit.misc@watsun; Sat, 31 May 1997 02:09:21 -0400 (EDT)
Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!news.maxwell.syr.edu!mindspring!usenet
From: David Greeson <dgreeson@mindspring.com>
Newsgroups: comp.protocols.kermit.misc,comp.os.linux.misc
Subject: Re: Transmit drops the last 10-14 characters
Date: Sat, 31 May 1997 02:10:30 -0400
Organization: MindSpring Enterprises
Lines: 69
Message-ID: <338FC0D6.69AAE64D@mindspring.com>
References: <338498B1.41C6@raleigh.ibm.com> <5m2brb$5l3$1@newsmaster.cc.columbia.edu>
NNTP-Posting-Host: user-37kbn31.dialup.mindspring.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 31 May 1997 06:09:04 GMT
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.30 i586)
Xref: news.columbia.edu comp.protocols.kermit.misc:7103 comp.os.linux.misc:196607
Frank da Cruz wrote:
>
> In article <338498B1.41C6@raleigh.ibm.com>,
> David Greeson <dgreeson@raleigh.ibm.com> wrote:
> : I'm using C-Kermit's transmit command to transfer an
> : ascii file out of a serial port to an embedded uP. I'm
> : running Linux v1.2.29 and I don't remember the C-Kermit
> : version, but I down loaded the version two months ago.
> : I set the following items:
> :
> : set line /dev/cua0
> : set speed 19200
set speed 9600
> : set file type binary (so it will transfer a byte at a time)
> : set flow xon
> :
> : Then I set the uP to receive the ascii file and type crtl-\c
> : C-kermit> transmit foo.bar
> :
> : The uP receives the whole file except for the last 10-14
> : characters. The com port has a 16550A uart.
> :
> But what about the microprocessor? Does it have a buffered
> UART? Does it do flow control?
The uP is using XON/XOFF for flow control and has a 16 byte
rcv/xmit fifos. Using port diags on the uP, I do not see
the last 13 bytes of the file. Also the port has not
been overrun'd. I'm downloading s-records and each line
has a checksum which is verified.
>
> : I was wondering
> : if C-Kermit opened the device; transmitted the file; Then
> : closed the device before all the characters were transmitted?
> :
> That might have happened under 4.2BSD, but Linux is based on
> System V &/or POSIX, in which a close() call ensures that all
> pending output is flushed. If it's not doing that I think we have
> an OS or driver bug.
>
> But before jumping to conclusions, how do we know that Kermit did
> not send all the bytes? Have you put a data scope on the line?
>
After the transmit finished, I typed "c" to connect and I
could type one character and see that the uP port received
the character. Also, if I set the uart type on the PC to
16450 (setserial /dev/cua1 16450), only the last byte is
missing. I conclude that the missing bytes are not being
transmitted by the PC. But I do not know where the problem
is on the PC.
I'm assuming that I have missed a setup option in kermit,
not that kermit is broken. I'm using ckermit-6.0.192-7.i386.rpm
which I installed as root using "rpm -i ckermit ...". I've
seen this same problem on two of my new mobo (mtech R418 and
R526) which use different chip types for the uarts. On my
old 386-40MHz w/16450 uarts, I did not have this problem.
I assume it is also processor speed related. I just have
upgraded my pc to RedHat v4.2 and I'm using the 2.0.30 kernel.
I'm not sure what else to try or how to verify if its a kernel
problem.
David